package com.ruoyi.jiaofu.service;

import com.ruoyi.jiaofu.domain.DdtJiaofuTopicTopic;
import com.ruoyi.jiaofu.mapper.DdtJiaofuTopicMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 专题书单Service业务层处理
 *
 * @author ruoyi
 * @date 2024-05-26
 */
@Service
@RequiredArgsConstructor
public class DdtJiaofuTopicService {
    private final DdtJiaofuTopicMapper ddtJiaofuTopicMapper;

    /**
     * 查询专题书单
     *
     * @param id 专题书单主键
     * @return 专题书单
     */
    public DdtJiaofuTopicTopic selectDdtJiaofuTopicById(Long id) {
        return ddtJiaofuTopicMapper.selectDdtJiaofuTopicById(id);
    }

    /**
     * 查询专题书单列表
     *
     * @param ddtJiaofuTopic 专题书单
     * @return 专题书单
     */
    public List<DdtJiaofuTopicTopic> selectDdtJiaofuTopicList(DdtJiaofuTopicTopic ddtJiaofuTopic) {
        return ddtJiaofuTopicMapper.selectDdtJiaofuTopicList(ddtJiaofuTopic);
    }
}
